wfDebug( " tryFileCache() - about to load\n" );
$cache->loadFromFileCache();
$wgOut->reportTime(); # For profiling
- exit;
+ wfAbruptExit();
} else {
wfDebug( " tryFileCache() - starting buffer\n" );
if($cache->useGzip() && wfClientAcceptsGzip()) {
header( "Cache-control: none" );
header( "Pragma: nocache" );
echo $text;
- exit;
+ wfAbruptExit();
}
# $db: DB_READ = -1 read from slave (or only server)
# wfGeneralizeSQL will probably cut down the query to reasonable
# logging size most of the time. The substr is really just a sanity check.
$profName = "wfQuery: " . substr( wfGeneralizeSQL( $sql ), 0, 255 );
-
wfProfileIn( $profName );
}
if ( false === $ret ) {
$wgOut->databaseError( $fname );
- exit;
+ wfAbruptExit();
}
if ( $wgProfiling ) {
header( "Last-Modified: {$lastmod}" );
wfDebug( "CACHED client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp\n", false );
$this->reportTime(); # For profiling
- exit;
+ wfAbruptExit();
} else {
wfDebug( "READY client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp\n", false );
$this->mLastModified = $lastmod;
$this->returnToMain( false );
$this->output();
- exit;
+ wfAbruptExit();
}
function sysopRequired()
if ( $wgCommandLineMode ) {
print "$msg\n";
- exit();
+ wfAbruptExit();
}
$sk = $wgUser->getSkin();
$shlink = $sk->makeKnownLink( wfMsgNoDB( "searchhelppage" ),
$this->mBodytext = $msg;
$this->output();
- exit();
+ wfAbruptExit();
}
function readOnlyPage( $source = "", $protected = false )
$this->mBodytext = $message;
$this->output();
- exit;
+ wfAbruptExit();
}
function unexpectedValueError( $name, $val )
$pages = explode( "\n", $page );
$xml = pages2xml( $pages, $curonly );
echo $xml;
- exit();
+ wfAbruptExit();
}
$wgOut->addWikiText( wfMsg( "exporttext" ) );